package com.donica.wamstest.entity;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class AirfleetVO {
	private String id;
	private String airline_code;
	private String code;
	private String name;
	private String cnname;
	private String desc;
	private String status;
	private String creator;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+0")
	private Timestamp create_time;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+0")
	private Timestamp update_time;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAirline_code() {
		return airline_code;
	}
	public void setAirline_code(String airline_code) {
		this.airline_code = airline_code;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCnname() {
		return cnname;
	}
	public void setCnname(String cnname) {
		this.cnname = cnname;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
	public Timestamp getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Timestamp update_time) {
		this.update_time = update_time;
	}
	
	public void initNullItem() {
		if(airline_code == null) {
			airline_code = "";
		}
		if(name == null) {
			name = "";
		}
		if(cnname == null) {
			cnname = "";
		}
		if(desc == null) {
			desc = "";
		}
		if(status == null) {
			status = "";
		}
		if(creator == null) {
			creator = "";
		}
	}
	
}
